<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

function get_hometown_text(){
    $return_hometown = '';
    $return_hometown .= $_SESSION['current_hometown'][$_SESSION['member']['ward']]['name']?$_SESSION['current_hometown'][$_SESSION['member']['ward']]['name'] . ' - ':'';
    $return_hometown .= $_SESSION['current_hometown'][$_SESSION['member']['district']]['name']?$_SESSION['current_hometown'][$_SESSION['member']['district']]['name'] . ' - ':'';
    $return_hometown .= $_SESSION['current_hometown'][$_SESSION['member']['city']]['name']?$_SESSION['current_hometown'][$_SESSION['member']['city']]['name']:'';
    return $return_hometown;
}



